package com.whmall.service.crm.entity.dto.company;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.whmall.component.entity.dto.CompanyKeyFieldDTO;
import com.whmall.component.entity.dto.OperatorReqDTO;
import com.whmall.component.entity.dto.ProcessInstanceCompletedMessageReqDTO;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class CompanyUpdateApplyDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private String name;

    private Integer province;

    private Integer city;

    private Integer district;

    private String address;

    private String tel;

    private String socialCreditCode;

    /**
     * 有效结束日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date businessEndDate;

    /**
     * 营业执照URL
     */
    private String certificateUrl;

    /** 申请表URL */
    private String url;

    /** 前端不传 */
    private OperatorReqDTO operator;

    /** 审批信息（前端不传） */
    private ProcessInstanceCompletedMessageReqDTO approveMessage;

    /** 申请ID（前端不传） */
    private Long applicationId;

}
